package com.daykw.ip.config;

import javax.sql.DataSource;

import org.nutz.dao.Dao;
import org.nutz.dao.impl.NutDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * Created by ebin on 2017/10/16.
 */
@Configuration
@Component("bdsDao")
public class BdsNutzDaoConfig extends NutDao implements Dao {
	DataSource druidDataSource;

	@Autowired
	public void setDruidDataSource(@Qualifier("bdsDs") DataSource druidDataSource) {
		this.druidDataSource = druidDataSource;
		setDataSource(druidDataSource);
	}
}
